home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-03-05 | 2.1 KB | 88 lines |
- ################ Beginning of makefile.tlr ################
- # Stuff that goes at the end of all the makefiles, but is not
- # configuration parameters should be in this file. It is included
- # after makefile.src.
-
- #config reads the configuration file and munches the appropriate make files
- config: doit
- ${TOPDIR}/Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
-
- config-subdirs: doit
- @-if test 'x$(DIRS)' != x ; then eval \
- 'for d in $(DIRS) ; do \
- ( cd $$d ; \
- echo Configuring ${HERE}$$d ; \
- ${TOPDIR}/Configure "${CONFIG}" "${TOPDIR}" \
- "${HERE}$$d/" "${MFLAGS}" ) \
- done' ; \
- else \
- true ; \
- fi
-
- doit:
-
-
- # Clean up installed stuff and binaries
- # pristine-pgm target invoked by pristine target in dirs that make programs
- #
- pristine-pgm: clean-pgm
- @-if test 'x$(PGMS)' != x ; then eval \
- 'for pgm in $(PGMS); do \
- dpgm=`basename $$pgm .out`; \
- echo rm -f $(DESTDIR)/$$dpgm ; \
- rm -f $(DESTDIR)/$$dpgm ; \
- done' ; \
- else \
- true ; \
- fi
-
- # Clean up binaries on program directories.
- clean-pgm:
- -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) man-pgm libman-pgm
-
- clean_all:
- -rm -f $(PGMS) *.out install* *.o $(OTHERJUNK) *.a *-pgm Makefile
-
- # Install program manual pages
- man-pgm: $(MANPAGES)
- @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
- chmod u+w $(MANPAGES)
- for i in $(MANPAGES) ; \
- do \
- cp $$i $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
- done
- chmod u-w $(MANPAGES)
- touch man-pgm
-
- # Install library manual pages
- libman-pgm: $(MANPAGES)
- @-if test ! -r $(MANDIR) ; then mkdir $(MANDIR) ; fi
- chmod u+w $(MANPAGES)
- for i in $(MANPAGES) ; \
- do \
- cp $$i $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
- done
- chmod u-w $(MANPAGES)
- touch libman-pgm
-
- # Uninstall program manual pages
- pristineman-pgm:
- for i in $(MANPAGES) ; \
- do \
- rm -f $(MANDIR)/`basename $$i .n`.$(MANEXT) ; \
- done
- rm -f man-pgm
-
- # Uninstall library manual pages
- pristinelibman-pgm:
- for i in $(MANPAGES) ; \
- do \
- rm -f $(LIBMANDIR)/`basename $$i .n`.$(LIBMANEXT) ; \
- done
- rm -f libman-pgm
-
- makefile:: makefile.src
- ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
-
- ################ End of makefile.tlr ################
-